package com.huanghj.book.dao;

import java.util.List;


import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.stereotype.Repository;

import com.huanghj.base.dao.AbstractBaseDao;
import com.huanghj.book.dto.TestDto;
@Repository("testDap")
public class TestDao extends AbstractBaseDao{
	
	private BeanPropertyRowMapper<TestDto> argTypes = new BeanPropertyRowMapper<TestDto>(TestDto.class);  
	
	private static final String TABLE_NAME = "test";
	private static final String ID = "id";
//	private static final String ID_PROPERTY = "userId";
	private static final String ID_PROPERTY = "id";
	
	public List<TestDto> queryTest() {
		StringBuffer sb = new StringBuffer();
		sb.append("select * from test");
		return jdbcTemplate.query(sb.toString(), argTypes);
	}
}
